CommandCut Class Reference

#include <CommandCut.h>

Inheritance diagram for CommandCut:

Command List of all members.

Public Member Functions

 CommandCut (OSGWindows *osgwind)
 CommandCut (OSGWindows *osgwind, TraffEduObject *obj)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
vector< TraffEduObject * > cutObjs_
vector< TraffEduObject * > tmpCutObjs_
vector< TraffEduObject * > tmpCopiedObjs_
int rightCLK
TraffEduObject * obj_

Constructor & Destructor Documentation

CommandCut::CommandCut (  OSGWindows *  osgwind  ) 
 

A constructor. Initializes osgwind_ and rightCLK variables. It is called if the cut operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.

CommandCut::CommandCut (  OSGWindows *  osgwind,
TraffEduObject *  obj
) 
 

A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the cut operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.
obj a TraffEduObject pointer.


Member Function Documentation

bool CommandCut::execute (   )  [virtual]
 

do the cut operation.

Returns:
Operation success

Implements Command.

bool CommandCut::unexecute (   )  [virtual]
 

undo the cut operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

vector<TraffEduObject*> CommandCut::cutObjs_ [private]
 

a private vector of TraffEduObjects. It holds the cut objects.

TraffEduObject* CommandCut::obj_ [private]
 

a private variable. It is used to hold the cut object.

OSGWindows* CommandCut::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

int CommandCut::rightCLK [private]
 

a private variable. It shows if the CommandCut is called from the RightClickMenu or not.

vector<TraffEduObject*> CommandCut::tmpCopiedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the copied objects before cut operation is done.

vector<TraffEduObject*> CommandCut::tmpCutObjs_ [private]
 

a private vector of TraffEduObjects. It holds the cut objects before cut operation is done.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO